package com.service.luo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dao.luo.StuDao;
import com.entity.Stu;

@Service
@Transactional(rollbackFor=Exception.class)
public class StuService {
	@Autowired
	private StuDao stuDao;
	
	public void findStu(Long stuno) {
		Stu stu = stuDao.findOne(stuno);
		System.out.println(stu);
	}
}
